package interview.innerClass;

/**
 * @Author: Jun
 * @Date: 2018/9/8 9:34
 */
public class ClassDemo {

        public void walk(){
            System.out.println("out walk");

    }

    class  innerClass extends ClassDemo{
        public void walk() {
          super.walk();
        }
    }

    public static void main(String[] args) {
        ClassDemo classDemo=new ClassDemo();
        classDemo.walk();
        new ClassDemo().new innerClass().walk();
    }
}
